package main

import (
	"fmt"
	"time"
)

/*===时间操作===
- add
- sub
- equal
- before
- after
*/
func main() {
	now := time.Now()
	later := now.Add(time.Hour)
	//unixNow := time.Unix(now.Unix(), 0)
	//year := unixNow.Year()
	unixLater := time.Unix(later.Unix(), 0)
	fmt.Printf("当前时间：%d \n", now)
	fmt.Printf("一小时后：%d \n", unixLater)
	fmt.Printf("当前时间：%d \n", now)
	fmt.Printf("一小时后：%d \n", later)

}
